<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../templates/templatePrincipal.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core">

    <ui:define name="libreria" />

    <ui:define name="windowTitle">SAMUPG::Mis postulaciones</ui:define>

    <ui:define name="content">
        <h:form class="center_content">
            <div>
                <h1>Mis postulaciones</h1>
            </div>
            <br />
            <p:dataGrid value="#{misPostulacionesController.listFichaInscripciones}" var="fi"
                        columns="3" rows="6" paginator="true"
                        paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                        rowsPerPageTemplate="6,9">
                <p:panel header="#{fi.maestriaDiplomado.nombre}" style="text-align: center;">
                    <h:panelGrid columns="1" style="width: 100%;">
                        <h:link outcome="consultarPostulacion.jsf">
                            <p:graphicImage value="../resources/images/file-icon.png" width="25px"/>
                            <f:param name="postId" value="#{fi.fiId}" />
                        </h:link>
                        <h:link outcome="consultarPostulacion.jsf" value="Consultar estado">
                            <f:param name="postId" value="#{fi.fiId}" />
                        </h:link>
                        <h:outputText value="Periodo: #{fi.periodo.nombre}" />
                    </h:panelGrid>
                </p:panel>
            </p:dataGrid>
        </h:form>
    </ui:define>
</ui:composition>
